import { createRouter, createWebHistory,createWebHashHistory, RouteRecordRaw } from "vue-router";

// 路由类型:RouteRecordRaw
const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name:'Home',
        component: () => import("../views/home/home.vue"),
    },
    {
        path: "/login",
        name:'Login',
        component: () => import("../views/login/login.vue"),
    },
    {
        path: "/userFamily",
        name:'userFamily',
        component: () => import("../views/userFamily/userFamily.vue"),
    },
    {
        path: "/reception",
        name:'reception',
        component: () => import("../views/reception/reception.vue"),
    },
];

const router = createRouter({
    // 路由模式
    history: createWebHashHistory(),
    routes,
});

export default router;